package com.heima.utils.threadlocal;


import com.heima.model.media.pojos.WmUser;

public class WmThreadLocalUtils {
    private final static ThreadLocal<WmUser> WM_USER_THREAD_LOCAL = new ThreadLocal<>();
    public static void setUser(WmUser wmUser){
        WM_USER_THREAD_LOCAL.set(wmUser);
    }
    public static WmUser getUser(){
        return WM_USER_THREAD_LOCAL.get();
    }
}
